package com.bjsxt.model;

import com.bjsxt.domain.SysMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "登录的结果")
public class LoginResult {

    @ApiModelProperty(value = "登录成功的token，来自authronization-server" )
private String token;

    @ApiModelProperty(value = "用户的菜单数据" )
private List<SysMenu> menus;

    @ApiModelProperty(value = "用户的权限数据" )
private List<SimpleGrantedAuthority>authorities;


}
